package com.hbnu.service.impl;

import com.hbnu.dao.UserDao;
import com.hbnu.pojo.User;
import com.hbnu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {


    //@Autowired
    @Resource(name = "userDao")
    private UserDao userDao;
    @Override
    public List<User> findAllUser(){
        return userDao.findAllUser();
    }
}
